//
//  BCModel.swift
//  NewXueBa
//
//  Created by Shine on 2019/6/3.
//  Copyright © 2019 jmxQAQ. All rights reserved.
//

import Foundation

//基础常用模型
struct BaseModel: HandyJSON {
    var code: NSInteger?
    var msg: String?
}

//登录的模型
struct LoginModel: HandyJSON {
    var code: NSInteger?
    var msg: String?
    var uid: String?
    var phoneno: String?
    var token: String?
    var photo_url: String?
    var nick_name: String?
    var role: NSInteger?
    var pwd: String?
}
/*---------------------------------------------------------*/

/*------待上课,回看课程Model--------*/
struct CourseModel: HandyJSON {
    var code: NSInteger?
    var msg: String?
    var offset: NSInteger?
    var total: NSInteger?
    var pages: NSInteger?
    var page_size: NSInteger?
    var course_list: [Course_list]?
}

struct Course_list: HandyJSON {
    var course_info: Course_info?
    var mate_info: Mate_info?
    var teacher_info: Teacher_info?
}

struct Course_info: HandyJSON {
    var course_id: String?
    var room_id: String?
    var create_uid: String?
    var create_phone: String?
    var createname: String?
    var roletype: NSInteger?
    var host_phone: String?
    var host_uid: String?
    var hostname: String?
    var course_time: Double?
    var course_time_md: String? // 创建时间c转成月日格式
    var duration: Double?
    var course_name: String?
    var limit: NSInteger?
    var classmode: NSInteger?
    var desc: String?
    var flag: NSInteger?
    var stulist: String? // 未知处理
    var mainmate: String?
    var matelist: String? //未知处理
    var invitationCode: String?
    var `class`: String? //未知处理
    var isrecord: NSInteger?
    var recordurl: String?
    var record_md5: String?
    var record_dura: NSInteger?
}
struct Mate_info: HandyJSON {
    var net_path: String?
    var origin_url: String?
    var trans_url: String?
    var trans_status: NSInteger?
    var trans_zip_url: String?
    var trans_zip_md5: String?
    var md5: String?
}
struct Teacher_info: HandyJSON {
    var photo_url: String?
    var nick_name: String?
}
/*---------------------------------------------------------*/
